<?php

class Core_Form_Admin_Settings_Utility extends Core_Form_Admin_Settings_Abstract
{

    public function init()
    {
        $this -> setTitle('online utility integration settings');

        $this -> setDescription('core.form.admin.utility.desc');

        // google analystics secret
        $this -> addElement('radio', 'googleanalystic_enable', array(
            'require' => 1,
            'value' => 'off',
            'label' => 'enable google analytics',
            'multiOptions' => array(
                'on' => 'yes, enable google analystic',
                'off' => 'no, disable google analystic',
            ),
            'description' => 'core.form.admin.googleanalystic.desc'
        ));

        // google analytics id
        $this -> addElement('text', 'googleanalystic_id', array(
            'require' => 0,
            'value' => '',
            'class' => 'text long-text',
            'label' => 'google analytics id',
            'description' => 'core.form.admin.googleanalystic.id.desc'
        ));
        
         // wibiya enabled
        $this -> addElement('radio', 'wibiya_enable', array(
            'require' => 1,
            'value' => 'off',
            'label' => 'enable wibiya',
            'multiOptions' => array(
                'on' => 'yes, enable wibiya',
                'off' => 'no, disable wibiya',
            ),
            'description' => 'core.form.admin.wibiya.desc'
        ));

        // wibiya script url
        $this -> addElement('text', 'wibiya_scripturl', array(
            'require' => 0,
            'value' => '',
            'class' => 'text long-text',
            'label' => 'wibiya script url',
            'description' => 'core.form.admin.scripturl.key.desc'
        ));
        
         // addthis enabled
        $this -> addElement('radio', 'addthis_enable', array(
            'require' => 1,
            'value' => 'off',
            'label' => 'enable addthis',
            'multiOptions' => array(
                'on' => 'yes, enable addthis',
                'off' => 'no, disable addthis',
            ),
            'description' => 'core.form.admin.addthis.desc'
        ));

        // addthis appid
        $this -> addElement('text', 'addthis_appid', array(
            'require' => 0,
            'value' => '',
            'class' => 'text long-text',
            'label' => 'addthis application id',
            'description' => 'core.form.admin.addthis.appid.desc'
        ));
        
        // mailchimp enabled
        $this -> addElement('radio', 'mailchimp_enable', array(
            'require' => 1,
            'value' => 'off',
            'label' => 'enable mailchimp',
            'multiOptions' => array(
                'on' => 'yes, enable mailchimp',
                'off' => 'no, disable mailchimp',
            ),
            'description' => 'core.form.admin.mailchimp.desc'
        ));

        // mailchimp appid
        $this -> addElement('text', 'mailchimp_appid', array(
            'require' => 0,
            'value' => '',
            'class' => 'text long-text',
            'label' => 'mailchimp application id',
            'description' => 'core.form.admin.mailchimp.appid.desc'
        ));
        

        // init submit
        $this -> addElement('button', '_submit', array(
            'label' => 'save change',
            'type' => 'submit',
            'class' => 'submit',
            'decorators' => array('ViewHelper')
        ));

        // init _test
        $this -> addElement('button', '_test', array(
            'label' => 'test settings',
            'type' => 'button',
            'class' => 'submit',
            'decorators' => array('ViewHelper')
        ));

        // init submit
        $this -> addElement('button', '_cancel', array(
            'label' => 'cancel',
            'type' => 'submit',
            'class' => 'cancel',
            'decorators' => array('ViewHelper')
        ));

        $this -> addDisplayGroup(array(
            '_submit',
            '_test',
            '_cancel'
        ), '_buttons');
    }

}
